import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.i18n.d.ts',
  content: "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit LocalizationKit\n */\n\nimport intl from '@ohos.intl';\n/**\n * Provides international settings related APIs.\n *\n * @namespace i18n\n * @syscap SystemCapability.Global.I18n\n * @since 7\n */\n/**\n * Provides international settings related APIs.\n *\n * @namespace i18n\n * @syscap SystemCapability.Global.I18n\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare namespace i18n {\n    /**\n     * Obtains the localized name of the specified country/region.\n     *\n     * @param { string } country - Specified country.\n     * @param { string } locale - System locale, which consists of the language, script, and country/region.\n     * @param { boolean } [sentenceCase] - Whether to use sentence case to display the text. The value \"true\" means to\n     *                                     display the text in title case format, and the value \"false\" means to display\n     *                                     the text in the default case format of the locale. The default value is true.\n     * @returns { string } Localized script for the specified country.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.System.getDisplayCountry\n     */\n    export function getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;\n    /**\n     * Obtains the localized script for the specified language.\n     *\n     * @param { string } language - Specified language.\n     * @param { string } locale - System locale, which consists of the language, script, and country/region.\n     * @param { boolean } [sentenceCase] - Whether to use sentence case to display the text. The value \"true\" means to\n     *                                     display the text in title case format, and the value \"false\" means to display\n     *                                     the text in the default case format of the locale. The default value is true.\n     * @returns { string } Localized script for the specified language.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.System.getDisplayLanguage\n     */\n    export function getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;\n    /**\n     * Obtains the system language.\n     *\n     * @returns { string } System language ID.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.System.getSystemLanguage\n     */\n    export function getSystemLanguage(): string;\n    /**\n     * Obtains the system region.\n     *\n     * @returns { string } System region ID.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.System.getSystemRegion\n     */\n    export function getSystemRegion(): string;\n    /**\n     * Obtains the system locale.\n     *\n     * @returns { string } System locale ID.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.System.getSystemLocale\n     */\n    export function getSystemLocale(): string;\n    /**\n     * Provides system functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 9\n     */\n    /**\n     * Provides system functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides system functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    export class System {\n        /**\n         * Obtains the country or region name localized for display on a given locale.\n         *\n         * @param { string } country - The locale whose country or region name will be displayed.\n         * @param { string } locale - The locale used to display the country or region.\n         * @param { boolean } [sentenceCase] - Specifies whether the country or region name is displayed in sentence case.\n         * @returns { string } the country or region name localized for display on a given locale.\n         * @throws { BusinessError } 401 - check param failed\n         * @throws { BusinessError } 890001 - param value not valid\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the country or region name localized for display on a given locale.\n         *\n         * @param { string } country - The locale whose country or region name will be displayed. It must be a valid country.\n         * @param { string } locale - The locale used to display the country or region. It must be a valid locale.\n         * @param { boolean } [sentenceCase] - Specifies whether the country or region name is displayed in sentence case.\n         * @returns { string } the country or region name localized for display on a given locale.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the country/region display name in the specified language.\n         *\n         * @param { string } country - Valid country/region code.\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @param { boolean } [sentenceCase] - Whether to use sentence case to display the text. The value \"true\" means to\n         *                                     display the text in title case format, and the value \"false\" means to\n         *                                     display the text in the default case format of the locale. The default value\n         *                                     is true.\n         * @returns { string } Country/region display name in the specified language.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string;\n        /**\n         * Obtains the language name localized for display on a given locale.\n         *\n         * @param { string } language - The locale whose language name will be displayed.\n         * @param { string } locale - The locale used to display the language.\n         * @param { boolean } [sentenceCase] - Specifies whether the language name is displayed in sentence case.\n         * @returns { string } the language name localized for display on a given locale.\n         * @throws { BusinessError } 401 - check param failed\n         * @throws { BusinessError } 890001 - param value not valid\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the language name localized for display on a given locale.\n         *\n         * @param { string } language - The locale whose language name will be displayed.\n         * @param { string } locale - The locale used to display the language.\n         * @param { boolean } [sentenceCase] - Specifies whether the language name is displayed in sentence case.\n         * @returns { string } the language name localized for display on a given locale.\n         * @throws { BusinessError } 401 - check param failed\n         * @throws { BusinessError } 890001 - param value not valid\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the language display name in the specified language.\n         *\n         * @param { string } language - Valid language ID.\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @param { boolean } [sentenceCase] - Whether to use sentence case to display the text. The value \"true\" means to\n         *                                     display the text in title case format, and the value \"false\" means to\n         *                                     display the text in the default case format of the locale. The default value\n         *                                     is true.\n         * @returns { string } Language display name in the specified language.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string;\n        /**\n         * Obtains all languages supported by the system.\n         *\n         * @returns { Array<string> } all languages supported by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the list of system languages.\n         *\n         * @returns { Array<string> } List of system languages.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getSystemLanguages(): Array<string>;\n        /**\n         * Obtains all regions supported by the system in the language.\n         *\n         * @param { string } language - The language used to get the list of regions. It must be a valid language.\n         * @returns { Array<string> } all countries or regions supported by the system in the language.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the list of countries/regions supported for the specified language.\n         *\n         * @param { string } language - Valid language ID.\n         * @returns { Array<string> } List of countries/regions supported for the specified language.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getSystemCountries(language: string): Array<string>;\n        /**\n         * Determine whether the current language or region is recommended.\n         *\n         * @param { string } language - The language code. It must be a valid language.\n         * @param { string } [region] - The region code. It must be a valid region.\n         * @returns { boolean } whether the current language or region is recommended.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Checks whether a language is a suggested language in the specified region. It can be used for region-based\n         * language recommendation or language-based region recommendation.\n         *\n         * @param { string } language - Valid language ID, for example, \"zh\".\n         * @param { string } [region] - Valid region ID, for example, \"CN\". The default value is the country/region of the\n         *                              SIM card.\n         * @returns { boolean } Whether a language is a suggested language. The value \"true\" indicates that the language\n         *                      is a suggested language of the region, the the value \"false\" indicates the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static isSuggested(language: string, region?: string): boolean;\n        /**\n         * Obtains the language currently used by the system.\n         *\n         * @returns { string } the language currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the language currently used by the system.\n         *\n         * @returns { string } the language currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the current system language.\n         *\n         * @returns { string } Language ID.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 11\n         */\n        static getSystemLanguage(): string;\n        /**\n         * Obtains the region currently used by the system.\n         *\n         * @returns { string } the region currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the region currently used by the system.\n         *\n         * @returns { string } the region currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the current system country/region.\n         *\n         * @returns { string } Country/region ID.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getSystemRegion(): string;\n        /**\n         * Obtains the locale currently used by the system.\n         *\n         * @returns { string } the locale currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the locale currently used by the system.\n         *\n         * @returns { string } the locale currently used by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the current system locale.\n         *\n         * @returns { string } Locale ID.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static getSystemLocale(): string;\n        /**\n         * Check out whether system is 24-hour system.\n         *\n         * @returns { boolean } a boolean represent whether system is 24-hour system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Check out whether system is 24-hour system.\n         *\n         * @returns { boolean } a boolean represent whether system is 24-hour system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check out whether system is 24-hour system.\n         *\n         * @returns { boolean } a boolean represent whether system is 24-hour system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @form\n         * @since 11\n         */\n        /**\n         * Checks whether the 24-hour clock is used.\n         *\n         * @returns { boolean } Whether the 24-hour clock is used. The value \"true\" indicates that the 24-hour clock is\n         *                      used, the the value \"false\" means the opposite.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        static is24HourClock(): boolean;\n        /**\n         * Access the system preferred language list.\n         *\n         * @returns { Array<string> } a string Array represent the preferred language list.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the list of preferred languages.\n         *\n         * @returns { Array<string> } List of preferred languages.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getPreferredLanguageList(): Array<string>;\n        /**\n         * Get the first preferred language of system.\n         *\n         * @returns { string } a string represent the first preferred language of system.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the first language in the preferred language list.\n         *\n         * @returns { string } First language in the preferred language list.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getFirstPreferredLanguage(): string;\n        /**\n         * Set the preferred language of App.\n         *\n         * @param { string } language - the language to be set. It must be a valid language.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Sets the preferred language of the application. Resources are loaded in the preferred language when the\n         * application is launched. If the preferred language is set to default, the application's language will be the\n         * same as the system language, and the setting will take effect upon cold starting of the application.\n         *\n         * @param { string } language - Valid language ID or default.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static setAppPreferredLanguage(language: string): void;\n        /**\n         * Get the preferred language of App.\n         *\n         * @returns { string } a string represent the preferred language of App.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the preferred language of an application.\n         *\n         * @returns { string } Preferred language of the application.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getAppPreferredLanguage(): string;\n        /**\n         * Get whether to use local digit.\n         *\n         * @returns { boolean } a boolean represents whether to use local digit.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Checks whether use of local digits is enabled.\n         *\n         * @returns { boolean } Whether use of local digits is enabled. The value \"true\" indicates that use of local digits\n         *                      is enabled, and the value \"false\" indicates the opposite.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getUsingLocalDigit(): boolean;\n        /**\n         * Obtains the simplified representation of a language. For example, the simplified representation of \"en-Latn-US\"\n         * is \"en\", and that of \"en-Latn-GB\" is \"en-GB\".\n         *\n         * @param { string } [language] - Valid language ID. The default value is the system language.\n         * @returns { string } If language is not passed, the application checks for dialects supported by the system based\n         *                     on the system language and locale. If such a dialect is found, the simplified representation\n         *                     of the dialect is returned. Otherwise, the simplified representation of the system language\n         *                     is returned. If language is passed, the simplified representation of the specified language\n         *                     is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 15\n         */\n        static getSimplifiedLanguage(language?: string): string;\n        /**\n         * Obtains the temperature unit of the system.\n         *\n         * @returns { TemperatureType } Temperature unit.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        static getTemperatureType(): TemperatureType;\n        /**\n         * Obtains the name of a temperature unit.\n         *\n         * @param { TemperatureType } type - Temperature unit.\n         * @returns { string } Name of the temperature unit, which can be \"celsius\", \"fahrenheit\", and \"kelvin\".\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        static getTemperatureName(type: TemperatureType): string;\n        /**\n         * Obtains the first day of a week in the system settings.\n         *\n         * @returns { WeekDay } Start day of a week.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        static getFirstDayOfWeek(): WeekDay;\n    }\n    /**\n     * Enumerates the first day of a week. The value ranges from Monday to Sunday.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export enum WeekDay {\n        /**\n         * Monday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        MON = 1,\n        /**\n         * Tuesday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        TUE = 2,\n        /**\n         * Wednesday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        WED = 3,\n        /**\n         * Thursday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        THU = 4,\n        /**\n         * Friday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        FRI = 5,\n        /**\n         * Saturday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        SAT = 6,\n        /**\n         * Sunday.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        SUN = 7\n    }\n    /**\n     * Enumerates temperature units.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export enum TemperatureType {\n        /**\n         * Celesius.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        CELSIUS = 1,\n        /**\n         * Fahrenheit.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        FAHRENHEIT = 2,\n        /**\n         * Kelvin.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        KELVIN = 3\n    }\n    /**\n     * Provides util functions.\n     *\n     * @interface Util\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.I18NUtil\n     */\n    export interface Util {\n        /**\n         * Converts one measurement unit into another and formats the unit based on the specified locale and style.\n         *\n         * @param { UnitInfo } fromUnit - Measurement unit to be converted.\n         * @param { UnitInfo } toUnit - Measurement unit to be converted to.\n         * @param { number } value - Value of the measurement unit to be converted.\n         * @param { string } locale - Locale ID used for formatting, for example, \"zh-Hans-CN\".\n         * @param { string } [style] - Style used for formatting. The value can be \"long\", \"short\", or \"narrow\". The\n         *                             default value is short.\n         * @returns { string } String obtained after formatting based on the measurement unit specified by toUnit.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.i18n/i18n.I18NUtil#unitConvert\n         */\n        unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;\n    }\n    /**\n     * Provides util functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 9\n     */\n    /**\n     * Provides util functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides util functions.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export class I18NUtil {\n        /**\n         * Convert from unit to unit and format according to the locale.\n         *\n         * @param { UnitInfo } fromUnit - Information of the unit to be converted.\n         * @param { UnitInfo } toUnit - Information about the unit to be converted to.\n         * @param { number } value - Indicates the number to be formatted.\n         * @param { string } locale - The locale to be used.\n         * @param { string } [style] - The style of format.\n         * @returns { string } converted number and unit.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Converts one measurement unit into another and formats the unit based on the specified locale and style.\n         *\n         * @param { UnitInfo } fromUnit - Measurement unit to be converted.\n         * @param { UnitInfo } toUnit - Measurement unit to be converted to.\n         * @param { number } value - Value of the measurement unit to be converted.\n         * @param { string } locale - Locale ID, which consists of the language, script, and country/region, for example,\n         *                            \"zh-Hans-CN\".\n         * @param { string } [style] - Style used for formatting. The value can be long, short, or narrow. The default\n         *                             value is short. For details about the meaning or display effect of different values,\n         *                             see Number and Unit of Measurement Formatting.\n         * @returns { string } String converted to the measurement unit after formatting.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;\n        /**\n         * Get the order of year, month, day in the specified locale. Year, month, day are separated by '-'.\n         * 'y' stands for year, 'L' stands for month, d stands for day.\n         *\n         * @param { string } locale - Information of the locale\n         * @returns { string } the string of 'y', 'L', 'd' joined by '-'.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Get the order of year, month, day in the specified locale. Year, month, day are separated by '-'.\n         * 'y' stands for year, 'L' stands for month, d stands for day.\n         *\n         * @param { string } locale - Information of the locale.\n         * @returns { string } the string of 'y', 'L', 'd' joined by '-'.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the sequence of the year, month, and day in the specified locale.\n         *\n         * @param { string } locale - Locale ID, which consists of the language, script, and country/region, for example,\n         *                            \"zh-Hans-CN\".\n         * @returns { string } Sequence of the year, month, and day in the locale. \"y\" indicates the year, \"L\" indicates\n         *                     the month, and \"d\" indicates the day.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getDateOrder(locale: string): string;\n        /**\n         * Get the time period name for the specified hour.\n         *\n         * @param { number } hour - the hour value.\n         * @param { string } [locale] - specified the locale. Use current app locale by default. It must be a valid locale.\n         * @returns { string } the string of time period name. The return value may be empty string\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Obtains the localized expression of the specified time in the specified locale.\n         *\n         * @param { number } hour - Specified time, for example, 16.\n         * @param { string } [locale] - System locale, which consists of the language, script, and country/region. for\n         *                              example, \"zh-Hans-CN\". The default value is the current system locale.\n         * @returns { string } Localized expression of the specified time in the specified locale.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getTimePeriodName(hour: number, locale?: string): string;\n        /**\n         * Obtains the locale that best matches a region from the specified locale list.\n         *\n         * @param { string } locale - Locale ID, for example, \"zh-Hans-CN\".\n         * @param { string[] } localeList - List of locale IDs.\n         * @returns { string } ID of the locale that best matches a region. If no matching locale is found, an empty string\n         *                     is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @static\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getBestMatchLocale(locale: string, localeList: string[]): string;\n        /**\n         * Converts a language code from two letters to three letters. For example, the two-letter language code of Chinese\n         * is \"zh\", and the corresponding three-letter language code is \"zho\". For details, see\n         * [ISO 639](https://www.iso.org/iso-639-language-code).\n         *\n         * @param { string } locale - Two-letter code of the language to be converted, for example, \"zh\".\n         * @returns { string } Language code after conversion.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @static\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getThreeLetterLanguage(locale: string): string;\n        /**\n         * Converts a region code from two letters to three letters. For example, the two-letter region code of China is\n         * \"CN\", and the corresponding three-letter region code is \"CHN\". For details, see\n         * [ISO 3166](https://www.iso.org/iso-3166-country-codes.html).\n         *\n         * @param { string } locale - Two-letter country/region code to be converted, for example, \"CN\".\n         * @returns { string } Region code after conversion.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @static\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getThreeLetterRegion(locale: string): string;\n        /**\n         * Localizes a file path for the specified locale. For example, /data/out/tmp is changed to tmp/out/data/ after\n         * localization.\n         *\n         * @param { string } path - Path to mirror, for example, \"/data/out/tmp\".\n         * @param [ string ] delimiter - Path delimiter. The default value is \"/\"\".\n         * @param [ intl.Locale ] locale - Locale object. The default value is the current system locale.\n         * @returns { string } File path after localization. If the specified locale object corresponds to an RTL language,\n         *                     the processed file path contains a direction control character to ensure that the file path\n         *                     is displayed in mirror mode.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @static\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        static getUnicodeWrappedFilePath(path: string, delimiter?: string, locale?: intl.Locale): string;\n    }\n    /**\n     * Provides the options of unit.\n     *\n     * @interface UnitInfo\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Defines the measurement unit information.\n     *\n     * @interface UnitInfo\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export interface UnitInfo {\n        /**\n         * Unit name.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Name of the measurement unit, for example, \"meter\", \"inch\", or \"cup\".\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        unit: string;\n        /**\n         * The measurement system of the unit.\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Measurement system. The value can be \"SI\", \"US\", or \"UK\".\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        measureSystem: string;\n    }\n    /**\n     * Provides the options of PhoneNumberFormat.\n     *\n     * @interface PhoneNumberFormatOptions\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Provides the options of PhoneNumberFormat.\n     *\n     * @interface PhoneNumberFormatOptions\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Options for PhoneNumberFormat object initialization.\n     *\n     * @interface PhoneNumberFormatOptions\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export interface PhoneNumberFormatOptions {\n        /**\n         * Indicates the type to format phone number.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Indicates the type to format phone number.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Indicates the type to format phone number.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Type of the phone number. The value can be \"E164\", \"INTERNATIONAL\", \"NATIONAL\", \"RFC3966\", or \"TYPING\".\n         * In API version 8, type is mandatory. In API version 9 or later, type is optional.\n         * In API version 12 or later, \"TYPING\" is supported, which indicates that the dialed number is formatted in real\n         * time.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        type?: string;\n    }\n    /**\n     * Provides the API for formatting phone number strings\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Provides the API for formatting phone number strings\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Provides the API for formatting phone number strings\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export class PhoneNumberFormat {\n        /**\n         * A constructor used to create a PhoneNumberFormat object.\n         *\n         * @param { string } country - Indicates a character string containing the country information for the PhoneNumberFormat object.\n         * @param { PhoneNumberFormatOptions } [options] - format types: \"E164\", \"RFC3966\", \"INTERNATIONAL\", \"NATIONAL\".\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * A constructor used to create a PhoneNumberFormat object.\n         *\n         * @param { string } country - Indicates a character string containing the country information for the PhoneNumberFormat object.\n         * @param { PhoneNumberFormatOptions } [options] - format types: \"E164\", \"RFC3966\", \"INTERNATIONAL\", \"NATIONAL\".\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Creates a PhoneNumberFormat object.\n         *\n         * @param { string } country - Country/region to which the phone number to be formatted belongs.\n         * @param { PhoneNumberFormatOptions } [options] - Options for PhoneNumberFormat object initialization.\n         *                                                 The default value is \"NATIONAL\".\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor(country: string, options?: PhoneNumberFormatOptions);\n        /**\n         * Judge whether phone number is valid.\n         *\n         * @param { string } number - Indicates the input phone number.\n         * @returns { boolean } a boolean indicates whether the input phone number is valid.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Judge whether phone number is valid.\n         *\n         * @param { string } number - Indicates the input phone number.\n         * @returns { boolean } a boolean indicates whether the input phone number is valid.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Checks whether the phone number is valid for the country/region in the PhoneNumberFormat object.\n         *\n         * @param { string } number - Phone number to be checked.\n         * @returns { boolean } Whether the phone number is valid. The value \"true\" indicates that the phone number is\n         *                      valid, and the value \"false\" indicates the opposite.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isValidNumber(number: string): boolean;\n        /**\n         * Obtains the formatted phone number strings of number.\n         *\n         * @param { string } number - Indicates the input phone number to be formatted.\n         * @returns { string } the formatted phone number.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains the formatted phone number strings of number.\n         *\n         * @param { string } number - Indicates the input phone number to be formatted.\n         * @returns { string } the formatted phone number.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Formats a phone number.\n         *\n         * @param { string } number - Phone number to be formatted.\n         * @returns { string } Formatted phone number.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        format(number: string): string;\n        /**\n         * Determine the location by phone number, and return it according to the specified regional language.\n         *\n         * @param { string } number - input phone number.\n         * @param { string } locale - locale ID.\n         * @returns { string } a string represents phone number's location.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the home location of a phone number.\n         *\n         * @param { string } number - Phone number. To obtain the home location of a number in other countries/regions,\n         *                            you need to prefix the number with 00 and the country code.\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @returns { string } Home location of the phone number. If the number is invalid, an empty string is returned.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getLocationName(number: string, locale: string): string;\n    }\n    /**\n     * Get a Calendar instance specified by locale and type.\n     *\n     * @param { string } locale - The locale used to get calendar.\n     * @param { string } [type] - If type is not specified, get locale's default Calendar, else get the specified type of Calendar.\n     *  such as buddhist, chinese, coptic, ethiopic, hebrew, gregory, indian, islamic_civil, islamic_tbla, islamic_umalqura,\n     *  japanese, persian.\n     * @returns { Calendar } Calendar object\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Get a Calendar instance specified by locale and type.\n     *\n     * @param { string } locale - The locale used to get calendar.\n     * @param { string } [type] - If type is not specified, get locale's default Calendar, else get the specified type of Calendar.\n     *  such as buddhist, chinese, coptic, ethiopic, hebrew, gregory, indian, islamic_civil, islamic_tbla, islamic_umalqura,\n     *  japanese, persian.\n     * @returns { Calendar } Calendar object\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the Calendar object for the specified locale and calendar type.\n     *\n     * @param { string } locale - Locale ID, which consists of the language, script, and country/region,\n     *                            for example, zh-Hans-CN.\n     * @param { string } [type] - Calendar. The value can be: \"buddhist\", \"chinese\", \"coptic\", \"ethiopic\",\n     *                            \"hebrew\", \"gregory\", \"indian\", \"islamic_civil\", \"islamic_tbla\",\n     *                            \"islamic_umalqura\", \"japanese\", or \"persian\". The default value is the default\n     *                            calendar of the locale. For details about the meanings and application scenarios of\n     *                            different values, see Calendar Setting.\n     * @returns { Calendar } Calendar object\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export function getCalendar(locale: string, type?: string): Calendar;\n    /**\n     * Provides the API for accessing Calendar name, time and date related information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     */\n    /**\n     * Provides the API for accessing Calendar name, time and date related information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the API for accessing Calendar name, time and date related information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export class Calendar {\n        /**\n         * set the date.\n         *\n         * @param { Date } date - Date object used to set the time and date.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * set the date.\n         *\n         * @param { Date } date - Date object used to set the time and date.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the date and time for a Calendar object.\n         *\n         * @param { Date } date - Date and time. Note: The month starts from 0. For example, 0 indicates January.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setTime(date: Date): void;\n        /**\n         * set the time.\n         *\n         * @param { number } time - Indicates the elapsed milliseconds from 1970.1.1 00:00:00 GMT.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * set the time.\n         *\n         * @param { number } time - Indicates the elapsed milliseconds from 1970.1.1 00:00:00 GMT.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the date and time for a Calendar object.\n         *\n         * @param { number } time - Unix timestamp, which indicates the number of milliseconds that have elapsed since the\n         *                          Unix epoch.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setTime(time: number): void;\n        /**\n         * Set the time\n         *\n         * @param { number } year - The year field of the calendar, ranges from 0 to 9999.\n         * @param { number } month - The month field of the calendar, ranges from 0 to 11.\n         * @param { number } date - The day field of the calendar, ranges from 1 to 31.\n         * @param { number } hour - The hour field of the calendar, ranges from 0 to 23.\n         * @param { number } minute - The minute field of the calendar, ranges from 0 to 59.\n         * @param { number } second - the second field of the calendar, ranges from 0 to 59.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Set the time\n         *\n         * @param { number } year - The year field of the calendar, ranges from 0 to 9999.\n         * @param { number } month - The month field of the calendar, ranges from 0 to 11.\n         * @param { number } date - The day field of the calendar, ranges from 1 to 31.\n         * @param { number } hour - The hour field of the calendar, ranges from 0 to 23.\n         * @param { number } minute - The minute field of the calendar, ranges from 0 to 59.\n         * @param { number } second - the second field of the calendar, ranges from 0 to 59.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the year, month, day, hour, minute, and second for this Calendar object.\n         *\n         * @param { number } year - Year to set.\n         * @param { number } month - Month to set. Note: The month starts from 0. For example, 0 indicates January.\n         * @param { number } date - Day to set.\n         * @param { number } hour - Hour to set. The default value is the current system time.\n         * @param { number } minute - Minute to set. The default value is the current system time.\n         * @param { number } second - Second to set. The default value is the current system time.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        set(year: number, month: number, date: number, hour?: number, minute?: number, second?: number): void;\n        /**\n         * Set the timezone of this calendar.\n         *\n         * @param { string } timezone - The id of a timezone.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Set the timezone of this calendar.\n         *\n         * @param { string } timezone - The id of a timezone.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the time zone of this Calendar object.\n         *\n         * @param { string } timezone - Valid time zone ID, for example, Asia/Shanghai.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setTimeZone(timezone: string): void;\n        /**\n         * Get the timezone id of this calendar instance.\n         *\n         * @returns { string } the timezone id of this calendar.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Get the timezone id of this calendar instance.\n         *\n         * @returns { string } the timezone id of this calendar.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the time zone ID of this Calendar object.\n         *\n         * @returns { string } Time zone ID.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getTimeZone(): string;\n        /**\n         * Get the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         *\n         * @returns { number } start day of a week.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Get the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         *\n         * @returns { number } start day of a week.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the first day of a week for this Calendar object.\n         *\n         * @returns { number } First day of a week. The value 1 indicates Sunday, and the value 7 indicates Saturday.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getFirstDayOfWeek(): number;\n        /**\n         * Set the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         *\n         * @param { number } value - Indicates the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Set the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         *\n         * @param { number } value - Indicates the start day of a week. 1 indicates Sunday, 7 indicates Saturday.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the first day of a week for this Calendar object.\n         *\n         * @param { number } value - Start day of a week. The value 1 indicates Sunday, and the value 7 indicates Saturday.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setFirstDayOfWeek(value: number): void;\n        /**\n         * Get the minimal days of a week, which is needed for the first day of a year.\n         *\n         * @returns { number } the minimal days of a week.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Get the minimal days of a week, which is needed for the first day of a year.\n         *\n         * @returns { number } the minimal days of a week.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the minimum number of days in the first week for this Calendar object.\n         *\n         * @returns { number } Minimum number of days in the first week of a year.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getMinimalDaysInFirstWeek(): number;\n        /**\n         * Set the minimal days of a week, which is needed for the first week of a year.\n         *\n         * @param { number } value - The value to be set.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Set the minimal days of a week, which is needed for the first week of a year.\n         *\n         * @param { number } value - The value to be set.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the minimum number of days in the first week for this Calendar object.\n         *\n         * @param { number } value - Minimum number of days in the first week of a year.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setMinimalDaysInFirstWeek(value: number): void;\n        /**\n         * Get the associated value with the field.\n         *\n         * @param { string } field - Field values such as era, year, month, week_of_year, week_of_month, date, day_of_year, day_of_week\n         *  day_of_week_in_month, hour, hour_of_day, minute, second, millisecond, zone_offset, dst_offset, year_woy,\n         *  dow_local, extended_year, julian_day, milliseconds_in_day, is_leap_month.\n         * @returns { number } the associated value.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Get the associated value with the field.\n         *\n         * @param { string } field - Field values such as era, year, month, week_of_year, week_of_month, date, day_of_year, day_of_week\n         *  day_of_week_in_month, hour, hour_of_day, minute, second, millisecond, zone_offset, dst_offset, year_woy,\n         *  dow_local, extended_year, julian_day, milliseconds_in_day, is_leap_month.\n         * @returns { number } the associated value.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the values of the calendar attributes in this Calendar object.\n         *\n         * @param { string } field - Calendar attributes. The following table lists the supported attribute values.\n         * @returns { number } Value of the calendar attribute. For example, if the year of the internal date of the\n         *                     current Calendar object is 1990, get('year') returns 1990.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        get(field: string): number;\n        /**\n         * Get calendar's name localized for display in the given locale.\n         *\n         * @param { string } locale - Locale used to get the localized name for this calendar. It must be a valid locale.\n         * @returns { string } the localized name of this calendar.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains calendar display name in the specified language.\n         *\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @returns { string } Calendar display name in the specified language. For example, buddhist is displayed as\n         *                     Buddhist Calendar if the locale is en-US.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getDisplayName(locale: string): string;\n        /**\n         * Returns true if the given date is a weekend day. If the date is not given,\n         *  the date object of this calendar is used.\n         *\n         * @param { Date } [date] - Date object whose attribute is desired.\n         * @returns { boolean } whether the date is a weekend day.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Returns true if the given date is a weekend day. If the date is not given,\n         *  the date object of this calendar is used.\n         *\n         * @param { Date } [date] - Date object whose attribute is desired.\n         * @returns { boolean } whether the date is a weekend day.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether a given date is a weekend in this Calendar object.\n         *\n         * @param { Date } [date] - Date and time. Note: The month starts from 0. For example, 0 indicates January.\n         *                          The default value is current date of the Calendar object.\n         * @returns { boolean } The value \"true\" indicates that the specified date is a weekend, and the value \"false\"\n         *                      indicates the opposite.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isWeekend(date?: Date): boolean;\n        /**\n         * Adds or subtract the specified amount of time to the given calendar field.\n         *\n         * @param { string } field - field values such as year, month, week_of_year, week_of_month, date, day_of_year, day_of_week\n         *  day_of_week_in_month, hour, hour_of_day, minute, second, millisecond\n         * @param { number } amount - the amount of date or time to be added to the field.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Performs addition or subtraction on the calendar attributes of this Calendar object.\n         *\n         * @param { string } field - Calendar attribute. The value can be any of the following: year, month, week_of_year,\n         *                           week_of_month, date, day_of_year, day_of_week, day_of_week_in_month, hour,\n         *                           hour_of_day, minute, second, millisecond. For details about the values, see get.\n         * @param { number } amount - Addition or subtraction amount.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        add(field: string, amount: number): void;\n        /**\n         * Get the UTC milliseconds.\n         *\n         * @returns { number }  the calendar time as UTC milliseconds.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Obtains the timestamp of this Calendar object.\n         *\n         * @returns { number } Unix timestamp, which indicates the number of milliseconds that have elapsed since the\n         *                     Unix epoch.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getTimeInMillis(): number;\n        /**\n         * Returns days comparison result.\n         *\n         * @param { Date } date - Date object to be compared.\n         * @returns { number }  value of of the comparison result. A positive value indicates that the date is later,\n         * and a negative value indicates that the date is earlier.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Compares the current date of this Calendar object with the specified date for the difference in the number of\n         * days.\n         *\n         * @param { Date } date - Date and time. Note: The month starts from 0. For example, 0 indicates January.\n         * @returns { number } Difference in the number of days. A positive number indicates that the calendar date is\n         *                     earlier, and a negative number indicates the opposite. The value is accurate to\n         *                     milliseconds. If the value is less than one day, it is considered as one day.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        compareDays(date: Date): number;\n    }\n    /**\n     * Judge whether the locale is RTL locale.\n     *\n     * @param { string } locale - The locale to be used.\n     * @returns { boolean } true representing the locale is an RTL locale\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     */\n    /**\n     * Judge whether the locale is RTL locale.\n     *\n     * @param { string } locale - The locale to be used.\n     * @returns { boolean } true representing the locale is an RTL locale\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Checks whether the input character is of the right to left (RTL) language.\n     *\n     * @param { string } locale - Input character. If the input is a string, only the type of the first character is checked.\n     * @returns { boolean } true if the input character is of the RTL language, and false otherwise.\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export function isRTL(locale: string): boolean;\n    /**\n     * Obtains a BreakIterator object for finding the location of break point in text.\n     *\n     * @param { string } locale - the returned BreakIterator will adapt the rule, specified by the locale, to break text.\n     * @returns { BreakIterator } a newly constructed BreakIterator object.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Obtains a BreakIterator object. The BreakIterator object maintains an internal break iterator that can be used to\n     * access various line break points.\n     *\n     * @param { string } locale - System locale, which consists of the language, script, and country/region. The\n     *                            generated BreakIterator object calculates the positions of line breaks based on\n     *                            the rules of the specified locale.\n     * @returns { BreakIterator } BreakIterator object.\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export function getLineInstance(locale: string): BreakIterator;\n    /**\n     * The BreakIterator class is used for finding the location of break point in text.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * The BreakIterator class is used for finding the location of break point in text.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class BreakIterator {\n        /**\n         * Obtains the current position of the BreakIterator instance.\n         *\n         * @returns { number } the current position of the BreakIterator instance.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains the position of the break iterator in the text.\n         *\n         * @returns { number } Position of the break iterator in the text.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        current(): number;\n        /**\n         * Set the BreakIterator's position to the first break point, the first break point is always the beginning of the\n         * processed text.\n         *\n         * @returns { number } the index of the first break point.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Moves the break iterator to the first line break point, which is always at the beginning of the processed text.\n         *\n         * @returns { number } Offset of the first line break point in the processed text.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        first(): number;\n        /**\n         * Set the BreakIterator's position to the last break point. the last break point is always the index beyond the\n         * last character of the processed text.\n         *\n         * @returns { number } the index of the last break point.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Moves the break iterator to the last line break point, which is always the next position after the end of the\n         * processed text.\n         *\n         * @returns { number } Offset of the last line break point in the processed text.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        last(): number;\n        /**\n         * Set the BreakIterator's position to the nth break point from the current break point.\n         *\n         * @param { number } [index] - indicates the number of break points to advance. If index is not given, n is treated as 1.\n         * @returns { number } the index of the BreakIterator after moving. If there is not enough break points, returns -1.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Moves the break iterator backward by the specified number of line break points.\n         *\n         * @param { number } [index] - Number of line break points for moving the break iterator. The value is an integer.\n         *                             A positive number means to move the break iterator backward, and a negative number\n         *                             means to move the break iterator forward. The default value is 1.\n         * @returns { number } Position of the break iterator in the text after movement. The value -1 is returned if the\n         *                     position of the break iterator is outside of the processed text after movement.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        next(index?: number): number;\n        /**\n         * Set the BreakIterator's position to the break point preceding the current break point.\n         *\n         * @returns { number } the index of the BreakIterator after moving. If there is not enough break points, returns -1.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Moves the break iterator foreward by one line break point.\n         *\n         * @returns { number } Position of the break iterator in the text after movement. The value -1 is returned if the\n         *                     position of the break iterator is outside of the processed text after movement.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        previous(): number;\n        /**\n         * Set the text to be processed.\n         *\n         * @param { string } text - Indicates the text to be processed by the BreakIterator.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Sets the text to be processed by the BreakIterator object.\n         *\n         * @param { string } text - Input text.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        setLineBreakText(text: string): void;\n        /**\n         * Set the BreakIterator's position to the first break point following the specified offset.\n         *\n         * @param { number } offset\n         * @returns { number } the index of the BreakIterator after moving. If there is not enough break points, returns -1.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Moves the line break iterator to the line break point after the specified position.\n         *\n         * @param { number } offset - Offset of the line break point.\n         * @returns { number } Position of the break iterator in the text after movement. The value -1 is returned if the\n         *                     position of the break iterator is outside of the processed text after movement.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        following(offset: number): number;\n        /**\n         * Obtains the text being processed.\n         *\n         * @returns { string } the text that is processed by the BreakIterator.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains the text processed by the BreakIterator object.\n         *\n         * @returns { string } Text being processed by the BreakIterator object.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getLineBreakText(): string;\n        /**\n         * Returns true if the position indicated by the offset is a break point, otherwise false. The BreakIterator's\n         * position will be set to the position indicated by the offset if it returns true, otherwise the BreakIterator\n         * will be moved to the break point following the offset.\n         *\n         * @param { number } offset The offset to be checked.\n         * @returns { boolean } true if the offset is a break point.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Checks whether the specified position is a line break point.\n         *\n         * @param { number } offset - Specified position in the text.\n         * @returns { boolean } Whether the specified position is a line break point. The value \"true\" indicates that the\n         *                      specified position is a line break point, and the value \"false\" indicates the opposite.\n         *                      If true is returned, the break iterator is moved to the position specified by offset.\n         *                      Otherwise, the break iterator is moved to the text line break point after the position\n         *                      specified by offset, which is equivalent to calling following.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        isBoundary(offset: number): boolean;\n    }\n    /**\n     * Get IndexUtil object.\n     *\n     * @param { string } [locale] - Indicates a character string containing the locale information, including\n     *               the language and optionally the script and region, for the NumberFormat object.\n     * @returns { IndexUtil } IndexUtil object.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Creates an IndexUtil object.\n     *\n     * @param { string } [locale] - System locale, which consists of the language, script, and country/region.\n     *                              The default value is the current system locale.\n     * @returns { IndexUtil } IndexUtil object created based on the specified locale ID.\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export function getInstance(locale?: string): IndexUtil;\n    /**\n     * Sequence text can be grouped under the specified area,\n     * and grouping index with different lengths can be specified.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     */\n    /**\n     * Sequence text can be grouped under the specified area,\n     * and grouping index with different lengths can be specified.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class IndexUtil {\n        /**\n         * Get a list of labels for use as a UI index\n         *\n         * @returns { Array<string> } a list of labels\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains the index list of the current locale.\n         *\n         * @returns { Array<string> } Index list of the current locale. The first and last elements are \"...\".\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getIndexList(): Array<string>;\n        /**\n         * Add the index characters from a Locale to the index.\n         *\n         * @param { string } locale - The locale whose index characters are to be added.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Adds the index list of a new locale to the index list of the current locale to form a composite list.\n         *\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        addLocale(locale: string): void;\n        /**\n         * Get corresponding index of the input text.\n         *\n         * @param { string } text - input text\n         * @returns { string } index of the input text\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         */\n        /**\n         * Obtains the index of the text object.\n         *\n         * @param { string } text - text object.\n         * @returns { string } Index of the text object. If no proper index is found, an empty string is returned.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getIndex(text: string): string;\n    }\n    /**\n     * Provides the API for accessing unicode character properties. For example, determine whether a character is a number.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead Unicode\n     */\n    export class Character {\n        /**\n         * Checks whether the input character is a digit.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a digit, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isDigit\n         */\n        isDigit(char: string): boolean;\n        /**\n         * Checks whether the input character is a space.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a space, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isSpaceChar\n         */\n        isSpaceChar(char: string): boolean;\n        /**\n         * Checks whether the input character is a whitespace.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a white space, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isWhitespace\n         */\n        isWhitespace(char: string): boolean;\n        /**\n         * Checks whether the input character is of the right to left (RTL) language.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is of the RTL language, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isRTL\n         */\n        isRTL(char: string): boolean;\n        /**\n         * Checks whether the input character is an ideographic character.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character an ideographic character, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isIdeograph\n         */\n        isIdeograph(char: string): boolean;\n        /**\n         * Checks whether the input character is a letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character a letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isLetter\n         */\n        isLetter(char: string): boolean;\n        /**\n         * Checks whether the input character is a lowercase letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character a lowercase letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isLowerCase\n         */\n        isLowerCase(char: string): boolean;\n        /**\n         * Checks whether the input character is an uppercase letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character an uppercase letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.isUpperCase\n         */\n        isUpperCase(char: string): boolean;\n        /**\n         * Obtains the type of the input character.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { string } Type of the input character.\n         * @syscap SystemCapability.Global.I18n\n         * @since 8\n         * @deprecated since 9\n         * @useinstead Unicode.getType\n         */\n        getType(char: string): string;\n    }\n    /**\n     * Provides the API for accessing unicode character properties. For example, determine whether a character is a number.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 9\n     */\n    /**\n     * Provides the API for accessing unicode character properties. For example, determine whether a character is a number.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the API for accessing unicode character properties. For example, determine whether a character is a number.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export class Unicode {\n        /**\n         * Determines whether the specified code point is a digit character\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a digit character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines whether the specified code point is a digit character\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a digit character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is a digit.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a digit, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isDigit(char: string): boolean;\n        /**\n         * Determines if the specified character is a space character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a space character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a space character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a space character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is a space.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a space, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isSpaceChar(char: string): boolean;\n        /**\n         * Determines if the specified character is a whitespace character\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a whitespace character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a whitespace character\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a whitespace character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is a whitespace.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is a white space, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isWhitespace(char: string): boolean;\n        /**\n         * Determines if the specified character is a RTL character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a RTL character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a RTL character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a RTL character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is of the right to left (RTL) language.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character is of the RTL language, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isRTL(char: string): boolean;\n        /**\n         * Determines if the specified character is a Ideographic character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a Ideographic character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a Ideographic character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a Ideographic character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is an ideographic character.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character an ideographic character, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isIdeograph(char: string): boolean;\n        /**\n         * Determines if the specified character is a Letter or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a Letter\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a Letter or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a Letter\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is a letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character a letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isLetter(char: string): boolean;\n        /**\n         * Determines if the specified character is a LowerCase character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a LowerCase character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a LowerCase character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a LowerCase character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is a lowercase letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character a lowercase letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isLowerCase(char: string): boolean;\n        /**\n         * Determines if the specified character is a UpperCase character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a UpperCase character\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Determines if the specified character is a UpperCase character or not.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { boolean } true if the character is a UpperCase character\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input character is an uppercase letter.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { boolean } true if the input character an uppercase letter, and false otherwise.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static isUpperCase(char: string): boolean;\n        /**\n         * Get the general category value of the specified character.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { string } the general category of the specified character.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Get the general category value of the specified character.\n         *\n         * @param { string } char - the character to be tested\n         * @returns { string } the general category of the specified character.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the type of the input character.\n         *\n         * @param { string } char - Input character. If the input is a string, only the type of the first character is\n         *                          checked.\n         * @returns { string } Type of the input character.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getType(char: string): string;\n    }\n    /**\n     * Checks whether the 24-hour clock is used.\n     *\n     * @returns { boolean } true if the 24-hour clock is used, and false otherwise.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#is24HourClock\n     */\n    export function is24HourClock(): boolean;\n    /**\n     * Sets the 24-hour clock.\n     *\n     * @permission ohos.permission.UPDATE_CONFIGURATION\n     * @param { boolean } option - Whether to enable the 24-hour clock. The value \"true\" means to enable the 24-hour\n     *                             clock, and the value \"false\" means the opposite.\n     * @returns { boolean } true if the setting is successful, and false otherwise.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#set24HourClock\n     */\n    export function set24HourClock(option: boolean): boolean;\n    /**\n     * Adds a preferred language to the specified position on the preferred language list.\n     *\n     * @permission ohos.permission.UPDATE_CONFIGURATION\n     * @param { string } language - Preferred language to add.\n     * @param { number } [index] - Position to which the preferred language is added. The default value is the length of\n     *                             the preferred language list.\n     * @returns { boolean } true if the operation is successful, and false otherwise.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#addPreferredLanguage\n     */\n    export function addPreferredLanguage(language: string, index?: number): boolean;\n    /**\n     * Removes a preferred language from the specified position on the preferred language list.\n     *\n     * @permission ohos.permission.UPDATE_CONFIGURATION\n     * @param { number } index - Position of the preferred language to delete.\n     * @returns { boolean } Whether the operation is successful. The value \"true\" indicates that the operation is\n     *                      successful, and the value \"false\" indicates the opposite.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#removePreferredLanguage\n     */\n    export function removePreferredLanguage(index: number): boolean;\n    /**\n     * Obtains the list of preferred languages.\n     *\n     * @returns { Array<string> } List of preferred languages.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#getPreferredLanguageList\n     */\n    export function getPreferredLanguageList(): Array<string>;\n    /**\n     * Obtains the first language in the preferred language list.\n     *\n     * @returns { string } First language in the preferred language list.\n     * @syscap SystemCapability.Global.I18n\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.i18n/i18n.System#getFirstPreferredLanguage\n     */\n    export function getFirstPreferredLanguage(): string;\n    /**\n     * Get the default TimeZone object or the TimeZone object corresponds to zoneID.\n     *\n     * @param { string } [zoneID] - TimeZone ID used to create TimeZone Object.\n     * @returns { TimeZone } a TimeZone object corresponds to zoneID.\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     */\n    /**\n     * Get the default TimeZone object or the TimeZone object corresponds to zoneID.\n     *\n     * @param { string } [zoneID] - TimeZone ID used to create TimeZone Object.\n     * @returns { TimeZone } a TimeZone object corresponds to zoneID.\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the TimeZone object corresponding to the specified time zone ID.\n     *\n     * @param { string } [zoneID] - Time zone ID. The default value is the system time zone.\n     * @returns { TimeZone } TimeZone object corresponding to the time zone ID.\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export function getTimeZone(zoneID?: string): TimeZone;\n    /**\n     * Provides the API for accessing TimeZone name, rawOffset and offset information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 7\n     */\n    /**\n     * Provides the API for accessing TimeZone name, rawOffset and offset information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the API for accessing TimeZone name, rawOffset and offset information.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export class TimeZone {\n        /**\n         * Get the id of the TimeZone object.\n         *\n         * @returns { string } a string represents the timezone id.\n         * @syscap SystemCapability.Global.I18n\n         * @since 7\n         */\n        /**\n         * Get the id of the TimeZone object.\n         *\n         * @returns { string } a string represents the timezone id.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the ID of the specified TimeZone object.\n         *\n         * @returns { string } Time zone ID corresponding to the TimeZone object.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getID(): string;\n        /**\n         * Get the displayName of the TimeZone Object under the locale.\n         *\n         * @param { string } [locale] - the locale tag use to display timezone object's name.\n         * @param { boolean } [isDST] - wether consider daylight saving time when display timezone object's name.\n         * @returns { string } a string represents the display name.\n         * @syscap SystemCapability.Global.I18n\n         * @since 7\n         */\n        /**\n         * Obtains time zone display name in the specified language.\n         *\n         * @param { string } [locale] - System locale, which consists of the language, script, and country/region.\n         *                              The default value is the current system locale.\n         * @param { boolean } [isDST] - Whether DST information is displayed. The value \"true\" indicates that DST\n         *                              information is displayed, and the value \"false\" indicates the opposite.\n         *                              The default value is false.\n         * @returns { string } Time zone display name in the specified language.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getDisplayName(locale?: string, isDST?: boolean): string;\n        /**\n         * Get the raw offset of the TimeZone object.\n         *\n         * @returns { number } a number represents the raw offset.\n         * @syscap SystemCapability.Global.I18n\n         * @since 7\n         */\n        /**\n         * Get the raw offset of the TimeZone object.\n         *\n         * @returns { number } a number represents the raw offset.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the raw offset of the specified time zone.\n         *\n         * @returns { number } Raw offset of the time zone, in milliseconds.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRawOffset(): number;\n        /**\n         * Get the offset of the TimeZone object.\n         *\n         * @param { number } [date] - Indicates a date use to compute offset.\n         * @returns { number } a number represents the offset with date.\n         * @syscap SystemCapability.Global.I18n\n         * @since 7\n         */\n        /**\n         * Get the offset of the TimeZone object.\n         *\n         * @param { number } [date] - Indicates a date use to compute offset.\n         * @returns { number } a number represents the offset with date.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the offset of the specified time zone at the specified time.\n         *\n         * @param { number } [date] - Specified time, in milliseconds. The default value is the system time.\n         * @returns { number } Time zone offset, in milliseconds. When the DST is used, the time zone offset\n         *                     is the raw time zone offset plus the DST offset.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getOffset(date?: number): number;\n        /**\n         * Get available TimeZone ID list.\n         *\n         * @returns { Array<string> } a string array represents the available TimeZone ID list.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Get available TimeZone ID list.\n         *\n         * @returns { Array<string> } a string array represents the available TimeZone ID list.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the list of time zone IDs supported by the system.\n         *\n         * @returns { Array<string> } List of time zone IDs supported by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getAvailableIDs(): Array<string>;\n        /**\n         * Get available Zone City ID list.\n         *\n         * @returns { Array<string> } a string array represents the available Zone City ID list.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains the list of time zone city IDs supported by the system.\n         *\n         * @returns { Array<string> } List of time zone city IDs supported by the system.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getAvailableZoneCityIDs(): Array<string>;\n        /**\n         * Get City display name in a certain locale.\n         *\n         * @param { string } cityID - Zone City ID.\n         * @param { string } locale - locale used to display city name.\n         * @returns { string } a string represents the display name of City in locale.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains time zone city display name in the specified language.\n         *\n         * @param { string } cityID - Time zone city ID.\n         * @param { string } locale - System locale, which consists of the language, script, and country/region.\n         * @returns { string } Time zone city display name in the specified language.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getCityDisplayName(cityID: string, locale: string): string;\n        /**\n         * Get TimeZone Object from city ID.\n         *\n         * @param { string } cityID - Zone City ID.\n         * @returns { TimeZone } a TimeZone Object from city ID.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Creates a TimeZone object corresponding to the specified time zone city.\n         *\n         * @param { string } cityID - Time zone city ID. The value must be a time zone city ID supported by the system.\n         * @returns { TimeZone } TimeZone object corresponding to the specified time zone city ID.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getTimezoneFromCity(cityID: string): TimeZone;\n        /**\n         * Get the possible time zones from the specified longitude and latitude.\n         *\n         * @param { number } longitude value\n         * @param { number } latitude value\n         * @returns { Array<TimeZone> } Returns a TimeZone array from the specified longitude and latitude.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Creates an array of TimeZone objects corresponding to the specified location.\n         *\n         * @param { number } longitude - Longitude. The value range is [-180, 179.9). A positive value is used for east\n         *                               longitude and a negative value is used for west longitude.\n         * @param { number } latitude - Latitude. The value range is [-90, 89.9). A positive value is used for north\n         *                              latitude and a negative value is used for south latitude.\n         * @returns { Array<TimeZone> } TimeZone objects corresponding to the specified location.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getTimezonesByLocation(longitude: number, latitude: number): Array<TimeZone>;\n    }\n    /**\n     * Provides the API for transliterate text from one format to another.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 9\n     */\n    /**\n     * Provides the API for transliterate text from one format to another.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class Transliterator {\n        /**\n         * Get a string array of all available transliterator ids.\n         *\n         * @returns { string[] } a string array of all available transliterator ids.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Obtains a list of IDs supported by the Transliterator object.\n         *\n         * @returns { string[] } List of IDs supported by the Transliterator object.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getAvailableIDs(): string[];\n        /**\n         * Get a Transliterator that is specified by id name.\n         *\n         * @param { string } id - specified the type of Transliterator. id is formed by source and dest. Transliterator will transliterate\n         *           the input string from source format to the dest format. For example, a Simplified Chinese to Latn\n         *           Transliterator will transform the text written in Chinese to Latn characters.\n         * @returns { Transliterator } Transliterator that is specified by id name.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Creates a Transliterator object based on the specified ID.\n         *\n         * @param { string } id - ID supported by the Transliterator object.\n         * @returns { Transliterator } Transliterator object.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getInstance(id: string): Transliterator;\n        /**\n         * Transform the input text.\n         *\n         * @param { string } text - text to be transliterated.\n         * @returns { string } the output text that is transliterated from source format to the dest format.\n         * @syscap SystemCapability.Global.I18n\n         * @since 9\n         */\n        /**\n         * Converts the input text from the source format to the target format.\n         *\n         * @param { string } text - Input text.\n         * @returns { string } Text after conversion.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        transform(text: string): string;\n    }\n    /**\n     * Enumerates the Normalizer modes.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.I18n\n     * @since 10\n     */\n    /**\n     * Enumerates text normalization modes.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export enum NormalizerMode {\n        /**\n         * Normalization form C, characters are decomposed and then re-composed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Normalization form C, characters are decomposed and then re-composed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        NFC = 1,\n        /**\n         * Normalization form D, characters are decomposed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Normalization form D, characters are decomposed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        NFD = 2,\n        /**\n         * Normalization form KC, characters are decomposed by compatibility, then re-composed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Normalization form KC, characters are decomposed by compatibility, then re-composed by canonical equivalence\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        NFKC = 3,\n        /**\n         * Normalization form KD, characters are decomposed by compatibility\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Normalization form KD, characters are decomposed by compatibility\n         *\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        NFKD = 4\n    }\n    /**\n     * Provides the API for text encoding normalization.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 10\n     */\n    /**\n     * Provides the API for text encoding normalization.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class Normalizer {\n        /**\n         * Get a Normalizer that is specified by normalize mode.\n         *\n         * @param { NormalizerMode } mode - specified the mode of Normalizer. It must be a valid mode.\n         * @returns { Normalizer } Transliterator that is specified by id name.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Obtains a Normalizer object.\n         *\n         * @param { NormalizerMode } mode - Text normalization mode.\n         * @returns { Normalizer } Normalizer object for text normalization.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        static getInstance(mode: NormalizerMode): Normalizer;\n        /**\n         * Get a normalized string of specified mode.\n         *\n         * @param { string } text - text to normalized.\n         * @returns { string } a normalized string from source.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @since 10\n         */\n        /**\n         * Normalizes input strings.\n         *\n         * @param { string } text - Input strings.\n         * @returns { string } Normalized strings.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        normalize(text: string): string;\n    }\n    /**\n     * Provides the informations of one holiday.\n     *\n     * @interface HolidayInfoItem\n     * @syscap SystemCapability.Global.I18n\n     * @since 11\n     */\n    /**\n     * Represents the holiday information.\n     *\n     * @interface HolidayInfoItem\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export interface HolidayInfoItem {\n        /**\n         * Holiday base name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Holiday name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        baseName: string;\n        /**\n         * Holiday start year.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Year of the holiday.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        year: number;\n        /**\n         * Holiday start month.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Month of the holiday.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        month: number;\n        /**\n         * Holiday start day.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Day of the holiday.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        day: number;\n        /**\n         * Holiday local name array.\n         *\n         * @type { ?Array<HolidayLocalName> }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Local names of the holiday.\n         *\n         * @type { ?Array<HolidayLocalName> }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        localNames?: Array<HolidayLocalName>;\n    }\n    /**\n     * Provides the informations holiday locale name.\n     *\n     * @interface HolidayLocalName\n     * @syscap SystemCapability.Global.I18n\n     * @since 11\n     */\n    /**\n     * Represents the name of a holiday in different languages.\n     *\n     * @interface HolidayLocalName\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export interface HolidayLocalName {\n        /**\n         * Holiday locale name language id.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Language, for example, \"ar\", \"en\", or \"tr\".\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        language: string;\n        /**\n         * Holiday local name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Local name of a holiday. For example, the Turkish name of Sacrifice Feast is Kurban Bayrami.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        name: string;\n    }\n    /**\n     * Provide some functions to manage holidays in a country or region. Partly follows the RFC2445 standard.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 11\n     */\n    /**\n     * Provide some functions to manage holidays in a country or region. Partly follows the RFC2445 standard.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class HolidayManager {\n        /**\n         * A constructor used to create a HolidayManager object.\n         *\n         * @param { String } icsPath - the path of the iCalendar format file to create HolidayManager object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Creates a HolidayManager object for parsing holiday data.\n         *\n         * @param { String } icsPath - Path of the .ics file with the read permission granted for applications.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        constructor(icsPath: String);\n        /**\n         * Returns true if the given date is a holiday. If the date is not given,\n         *  the date object of current time is used.\n         *\n         * @param { Date } [date] - Date object whose attribute is desired.\n         * @returns { boolean } whether the date is a holiday day.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Determines whether the specified date is a holiday.\n         *\n         * @param { Date } [date] - Date and time. Note: The month starts from 0. For example, 0 indicates January.\n         *                          The default value is the current date.\n         * @returns { boolean } true if the specified date is a holiday, and false otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        isHoliday(date?: Date): boolean;\n        /**\n         * Obtains holiday info array for a specified year\n         *\n         * @param { number } [year] - specified holiday year. If the year is not given,\n         *  the current year is used.\n         * @returns { Array<HolidayInfoItem> } holiday information array for one year.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Obtains the holiday information list of the specified year.\n         *\n         * @param { number } [year] - Specified year, for example, 2023.<br>The default value is the current year.\n         * @returns { Array<HolidayInfoItem> } Holiday information list.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        getHolidayInfoItemArray(year?: number): Array<HolidayInfoItem>;\n    }\n    /**\n     * Provides the informations of one entity.\n     *\n     * @interface EntityInfoItem\n     * @syscap SystemCapability.Global.I18n\n     * @since 11\n     */\n    /**\n     * Defines a list of entities.\n     *\n     * @interface EntityInfoItem\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export interface EntityInfoItem {\n        /**\n         * Entity begin position.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Start position of the entity in the input string.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        begin: number;\n        /**\n         * Entity end position.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * End position of the entity the input string.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        end: number;\n        /**\n         * Entity type. Field values such as phone_number, date\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Entity type. The value can be \"phone_number\" or \"date\". \"phone_number\" indicates that the entity is a phone\n         * number, and \"date\" indicates that the entity is a date.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        type: string;\n    }\n    /**\n     * Provide some functions to find named entity in text.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @since 11\n     */\n    /**\n     * Provide some functions to find named entity in text.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 12\n     */\n    export class EntityRecognizer {\n        /**\n         * A constructor used to create a EntityRecognizer object.\n         *\n         * @param { string } [locale] - specified the locale. Use current app locale by default. It must be a valid locale.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Creates an entityRecognizer object. This object is used to recognize entities in the text for the specified\n         * locale.\n         *\n         * @param { string } [locale] - Locale ID, which consists of the language, script, and country/region, for example,\n         *                              \"zh-Hans-CN\". The default value is the current system locale.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        constructor(locale?: string);\n        /**\n         * Obtains holiday info array for a specified text\n         *\n         * @param { string } text - the text to find entities.\n         * @returns { Array<EntityInfoItem> } entity information array found.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @since 11\n         */\n        /**\n         * Obtains entity information in the text object.\n         *\n         * @param { string } text - text object.\n         * @returns { Array<EntityInfoItem> } List of entities in the text.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;\n         *                                 2.Incorrect parameter types.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 12\n         */\n        findEntityInfo(text: string): Array<EntityInfoItem>;\n    }\n    /**\n     * Obtains a SimpleDateTimeFormat object based on the specified pattern string. For details about the display\n     * differences between the objects obtained by this API and getSimpleDateTimeFormatBySkeleton,\n     * see SimpleDateTimeFormat.\n     *\n     * @param { string } pattern - Valid pattern. For details about the supported characters and their meanings, see\n     *                             [Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).\n     *                             This parameter also supports custom text enclosed in single quotation marks ('').\n     * @param { intl.Locale } [locale] - Locale object. The default value is the current system locale.\n     * @returns { SimpleDateTimeFormat } SimpleDateTimeFormat object.\n     * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export function getSimpleDateTimeFormatByPattern(pattern: string, locale?: intl.Locale): SimpleDateTimeFormat;\n    /**\n     * Obtains a SimpleDateTimeFormat object based on the specified skeleton. For details about the display differences\n     * between the objects obtained by this API and getSimpleDateTimeFormatByPattern, see SimpleDateTimeFormat.\n     *\n     * @param { string } skeleton - Valid skeleton. For details about the supported characters and their meanings, see\n     *                              [Date Field Symbol Table](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).\n     *                              This parameter does not support custom text.\n     * @param { intl.Locale } [locale] - Locale object. The default value is the current system locale.\n     * @returns { SimpleDateTimeFormat } SimpleDateTimeFormat object.\n     * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export function getSimpleDateTimeFormatBySkeleton(skeleton: string, locale?: intl.Locale): SimpleDateTimeFormat;\n    /**\n     * Provide a simple date time formatting interface.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export class SimpleDateTimeFormat {\n        /**\n         * Formats the date and time.\n         *\n         * @param { Date } date - Date and time. Note: The month starts from 0. For example, 0 indicates January.\n         * @returns { string } A string containing the formatted date and time.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        format(date: Date): string;\n    }\n    /**\n     * Obtains a SimpleNumberFormat object based on the specified skeleton.\n     *\n     * @param { string } skeleton - Valid skeleton. For details about the supported characters and their meanings, see\n     *                              [Number Skeletons](https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#number-skeletons).\n     * @param { intl.Locale } [locale] - Locale object. The default value is the current system locale.\n     * @returns { SimpleNumberFormat } SimpleNumberFormat object.\n     * @throws { BusinessError } 890001 - Invalid parameter. Possible causes: Parameter verification failed.\n     * @syscap SystemCapability.Global.I18n\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    export function getSimpleNumberFormatBySkeleton(skeleton: string, locale?: intl.Locale): SimpleNumberFormat;\n    /**\n     * Provide a simple number formatting interface.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export class SimpleNumberFormat {\n        /**\n         * Formats a number.\n         *\n         * @param { number } value - Number to be formatted.\n         * @returns { string } Formatted number.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        format(value: number): string;\n    }\n    /**\n     * Provide a number formatting interface which could format number to StyleString.\n     *\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export class StyledNumberFormat {\n        /**\n         * Creates a NumberFormat object for rich text display.\n         *\n         * @param { intl.NumberFormat | SimpleNumberFormat } numberFormat - NumberFormat object.\n         * @param { StyledNumberFormatOptions } [ options ] - Configuration options of the NumberFormat object.\n         *                                                    The default value is the default text style.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        constructor(numberFormat: intl.NumberFormat | SimpleNumberFormat, options?: StyledNumberFormatOptions);\n        /**\n         * Formats a number as a rich text object.\n         *\n         * @param { number } value - Number to be formatted.\n         * @returns { StyledString } Rich text object after formatting.\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        format(value: number): StyledString;\n    }\n    /**\n     * Represents optional configuration items for the NumberFormat object.\n     *\n     * @interface StyledNumberFormatOptions\n     * @syscap SystemCapability.Global.I18n\n     * @atomicservice\n     * @since 18\n     */\n    export interface StyledNumberFormatOptions {\n        /**\n         * Text style for the integer part. The default value is the default text style.\n         *\n         * @type { ?TextStyle }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        integer?: TextStyle;\n        /**\n         * Text style for the decimal point. The default value is the default text style.\n         *\n         * @type { ?TextStyle }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        decimal?: TextStyle;\n        /**\n         * Text style for the fraction part. The default value is the default text style.\n         *\n         * @type { ?TextStyle }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        fraction?: TextStyle;\n        /**\n         * Text style for the unit. The default value is the default text style.\n         *\n         * @type { ?TextStyle }\n         * @syscap SystemCapability.Global.I18n\n         * @atomicservice\n         * @since 18\n         */\n        unit?: TextStyle;\n    }\n}\nexport default i18n;\n",
}
export default FILE;